#!/bin/bash
#1.取出ngx端口数量
count=`ss -lntup |grep nginx |wc -l`
echo "调试：ngx 端口数量 ${count}"

#2.进行判断 数量=0
if [ $count -eq 0 ];then
   systemctl stop keepalived
fi
